package com.ktgj.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 通用产品 - 来源渠道维护对象 product_channel
 * 
 * @author ruoyi
 * @date 2022-06-10
 */
public class ProductChannel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品渠道id */
    private Long channelId;

    /** 产品渠道名称 */
    @Excel(name = "产品渠道名称")
    private String name;

    /** 顺序 */
    @Excel(name = "顺序")
    private Long sort;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 最后维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后维护时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateDate;

    /** 维护人 */
    @Excel(name = "维护人")
    private String operation;

    /** 是否已删除 0否 1是 */
    @Excel(name = "是否已删除 0否 1是")
    private Long deleted;

    public void setChannelId(Long channelId) 
    {
        this.channelId = channelId;
    }

    public Long getChannelId() 
    {
        return channelId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setLastUpdateDate(Date lastUpdateDate) 
    {
        this.lastUpdateDate = lastUpdateDate;
    }

    public Date getLastUpdateDate() 
    {
        return lastUpdateDate;
    }
    public void setOperation(String operation) 
    {
        this.operation = operation;
    }

    public String getOperation() 
    {
        return operation;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("channelId", getChannelId())
            .append("name", getName())
            .append("sort", getSort())
            .append("createDate", getCreateDate())
            .append("lastUpdateDate", getLastUpdateDate())
            .append("operation", getOperation())
            .append("deleted", getDeleted())
            .toString();
    }
}
